package com.heima.api;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.schedule.dtos.TaskDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 21236
 */
@FeignClient("leadnews-schedule")
public interface TaskFeign {

    @PostMapping("/task/addTask")
    ResponseResult addTask(@RequestBody TaskDto dto);
}
